package org.opensourcedea.gui.maingui;

import org.eclipse.swt.widgets.*;
import org.eclipse.jface.window.*;
import org.eclipse.jface.action.*;
import org.opensourcedea.gui.deaproblem.*;


public class Main_GUI extends ApplicationWindow {
	
	StatusLineManager slm = new StatusLineManager();
//	ActionContributionItem aci = new ActionContributionItem(status_action);
	
	
	public Main_GUI()
	{
		super(null);
		addStatusLine();
		addMenuBar();
//		addToolBar(SWT.FLAT | SWT.WRAP);
	}
	
	protected Control createContents(Composite parent)
	{
		getShell().setText("OSDEA");
		
//		@SuppressWarnings("unused")
//		DEAPTabFolder deapTF = new DEAPTabFolder(parent);
//
//		parent.setSize(600,400);
		
		
//		aci.fill(parent);
		return parent;
	}
	
	public static void main(String[] args)
	{	
		
		Main_GUI swin = new Main_GUI();
		swin.setBlockOnOpen(true);
		swin.open();
		Display.getCurrent().dispose();
	}
	
	protected MenuManager createMenuManager()
	{		
		
		MenuManager main_menu = new Menu(slm, this.getShell()).getMenuManager();
		return main_menu;
	}
	
	
	protected StatusLineManager createStatusLineManager()
	{
		return slm;
	}
	
	
//	protected ToolBarManager createToolBarManager(int style)
//	{
//		ToolBarManager tool_bar_manager = new ToolBarManager(style);
//		tool_bar_manager.add(status_action);
//		return tool_bar_manager;
//	}
	
	
}
